package com.example.yunJie.digitalSentry.service.impl;

import com.example.yunJie.digitalSentry.entity.FaceDownEntity;
import com.example.yunJie.digitalSentry.mapper.one.FaceDownMapper;
import com.example.yunJie.digitalSentry.service.FaceDownService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@RequiredArgsConstructor
@Service
public class FaceDownServiceImpl implements FaceDownService {

    private final FaceDownMapper faceDownMapper;

    @Override
    public int insert(FaceDownEntity faceDownEntity) {
        return faceDownMapper.insert(faceDownEntity);
    }

    @Override
    public int update(FaceDownEntity faceDownEntity) {
        return faceDownMapper.update(faceDownEntity);
    }

    @Override
    public int deleteById(Serializable id) {
        return faceDownMapper.deleteById(id);
    }

    @Override
    public int deleteIdList(List<Integer> idList) {
        return faceDownMapper.deleteIdList(idList);
    }

    @Override
    public FaceDownEntity findId(Serializable id) {
        return faceDownMapper.findId(id);
    }

    @Override
    public List<FaceDownEntity> findAll() {
        return faceDownMapper.findAll();
    }

    @Override
    public List<FaceDownEntity> findByDevSno(String devSno) {
        return faceDownMapper.findByDevSno(devSno);
    }

    @Override
    public FaceDownEntity findBypersonalName(String personalName) {
        return faceDownMapper.findBypersonalName(personalName);
    }

    @Override
    public FaceDownEntity findBypidList(String pidList) {
        return faceDownMapper.findBypidList(pidList);
    }
}
